package com.food.dao.service;

import java.util.List;

import com.food.dao.CollectDAOJdbc;
import com.food.dao.in.CollectDAO;
import com.food.model.Collect;

public class CollectService {
	CollectDAO dao = new CollectDAOJdbc();
	
	public void insertCollect (Collect bean){
		dao.insertCollect(bean);
	}
	
	public void deleteCollect (Collect bean){
		dao.deleteCollect(bean.getCollectid());
	}

	public List< Collect > findCollectByRecipe (Collect bean){
		return dao.findCollectByRecipe(bean.getRid());
	}
	
	public List< Collect > findCollectByMb (Collect bean){
		return dao.findCollectByMb(bean.getMbid());
	}
}
